﻿@model Inscriptionem.Areas.Inscriptionem.Models.Views.CommentViewModel

@{
    ViewBag.Title = "Inscriptionem » Pages » Edit Comment";
    Layout = "../Shared/Layout.cshtml";

    ViewBag.CurrentPage = "Comments";
}

<div class="outer" id="contentwrap">
    @{Html.RenderPartial("NavigationMenu");}
    <div class="postcont">
		<div id="content">
            <div class="post type-post status-publish format-standard hentry">
                <h2 class="title">Edit Comment</h2>
                <div class="postdate-single error-message">@Model.Error</div>
                <hr />
                <form method="post" action="/Inscriptionem/Comment/Edit">
				    <div class="entry">
                        <input type="hidden" name="ID" value="@Model.ID" />
                        <p><textarea name="Content" style="width: 768px;">@Model.Content</textarea></p>
                        <p>Is Published <input type="checkbox" name="IsPublished" @(Model.IsPublished ? "checked" : string.Empty) /></p>
                        <p>Is Deleted <input type="checkbox" name="IsDeleted" @(Model.IsDeleted ? "checked" : string.Empty) /></p>
                        <input type="hidden" name="MemberID" value="@(Model.Member == null ? Inscriptionem.Authorization.Member.Current.ID : Model.Member.ID)" />
                        <p>Created By <input type="text" name="MemberName" value="@(Model.Member == null ? string.Empty : Model.Member.FirstName + " " + Model.Member.LastName)" disabled /></p>
                     </div>

                    <input type="reset" value="Reset" />&nbsp;|&nbsp;<input type="submit" value="Edit" />
                </form>
                <form method="post" action="/Inscriptionem/Comment/Approve">
                    <input type="hidden" name="ID" value="@Model.ID" />
                    <input type="submit" value="Approve" />
                </form>
                <form method="post" action="/Inscriptionem/Comment/Decline">
                    <input type="hidden" name="ID" value="@Model.ID" />
                    <input type="submit" value="Decline" />
                </form>
			</div>
        </div>
	</div>	
</div>
